<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>AdminLTE 2 | Top Navigation</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.7 -->
  <meta name="csrf-token" content="{{ csrf_token() }}">
  <link  href="{{ asset('css/bootstrap.min.css') }}" rel="stylesheet">
  <!-- Font Awesome -->
  <link  href="{{asset('css/font-awesome.min.css')}}" rel="stylesheet">
  <!-- Ionicons -->
  <link href="{{asset('css/ionicons.min.css')}}" rel="stylesheet" >
  <!-- Theme style -->
  <link  href="{{asset('css/AdminLTE.min.css')}}" rel="stylesheet">
  <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
        page. However, you can choose any other skin. Make sure you
        apply the skin class to the body tag so the changes take effect. -->
  <link  href="{{asset('css/skins/_all-skins.min.css')}}" rel="stylesheet">
  <link  href="{{ asset('css/mine.css') }}" rel="stylesheet">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->

</head>
<!-- ADD THE CLASS layout-top-nav TO REMOVE THE SIDEBAR. -->
<body class="hold-transition skin-blue layout-top-nav">
<div class="wrapper">

  <header class="main-header">
    <nav class="navbar navbar-static-top">
      <div class="container">
        <div class="navbar-header">
          <a href="{{url('/')}}" class="navbar-brand"><b>Admin</b>LTE</a>
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
            <i class="fa fa-bars"></i>
          </button>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse pull-left" id="navbar-collapse">
          <ul class="nav navbar-nav">
            @foreach ($cates as $cate)
            <li class="{{ url()->current() == url('/', [$cate->classpy]) ? 'active' : '' }}">
              <a href="{{url('/', [$cate->classpy])}}">{{$cate->classname}} </a></li>
            @endforeach
            
          </ul>
          <div class="col-sm-4 pull-right">
          <form action="#" method="post">
            <div class="input-group">
              <input type="text" name="message" placeholder="输入小说名或作者名搜索" class="form-control">
              <span class="input-group-btn">
                        <button type="submit" class="btn btn-primary btn-flat"><i class="fa fa-search"></i></button>
                      </span>
            </div>
          </form>
          </div>
        </div>
      </div>
      <!-- /.container-fluid -->
    </nav>
  </header>
  <!-- Full Width Column -->
  <div class="content-wrapper">